﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using com.eforceglobal.crux.BusinessObjects;
using com.eforceglobal.crux.configuration;

namespace com.eforceglobal.crux.logging
{
    public class ApplicationLogQueries
    {
        ApplicationLogBusinessObjectsDataContext bc = new ApplicationLogBusinessObjectsDataContext
            (CruxConfigurationManager.GetCruxApplicationLogDBConnectionString());

        // ------ Logging Related -----------------
        public void AddApplicationLogMessage(ApplicationLogMessage applicationLogMessage)
        {
            bc.ApplicationLogMessages.InsertOnSubmit(applicationLogMessage);
            bc.SubmitChanges();
        }

    }
}
